package com.fjzn.detect.service.user.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fjzn.detect.repository.user.entity.SysUser;
import com.fjzn.detect.repository.user.mapper.SysUserMapper;
import com.fjzn.detect.service.user.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author hellowrold
 * @since 2021-04-26
 */
@Service
public class ISysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

    @Override
    public SysUser selectUserByUserName(String username) {
        return getOne(new QueryWrapper<SysUser>().eq("user_name",username));
    }
}
